import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/Home/Home.vue'),
    meta: {
      title: '主页',
    },
  },

  {
    path: '/Vrlib',
    name: 'Vrlib',
    component: () => import('@/views/Vrlib/Vrlib.vue'),
    meta: {
      title: '虚图页面',
    },
  },
  {
    path: '/Sites',
    name: 'Sites',
    component: () => import('@/views/Sites/Sites.vue'),
    meta: {
      title: '虚排页面',
    },
  },

  {
    path: '/:catchAll(.*)',
    name: '404',
    component: () => import('@/views/errors/404.vue'),
    meta: {
      title: '404页面',
    },
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
